package base

import "time"

// RequestOptions represents the configuration options for API requests.
type RequestOptions struct {
	// BaseUrl is the base URL for the FreeDictionaryAPI endpoints.
	BaseUrl string
	// TimeOut specifies the timeout duration for API requests.
	TimeOut time.Duration
}

// DefaultRequestOptions returns the default request options with recommended settings.
// The default settings include the official FreeDictionaryAPI endpoint and a 10-second timeout.
func DefaultRequestOptions() RequestOptions {
	return RequestOptions{
		BaseUrl: "https://freedictionaryapi.com/api/v1",
		TimeOut: time.Second * 10,
	}
}
